<template>
  <u-form-grid :data="formGrid"></u-form-grid>
</template>

<script>
  import values from '../../utils/values'

  export default {
    name: 'Order',
    data() {
      return {
        formGrid: {
          options: {
            version: 'v2',
            url: {
              page: "/order/page",
              save: "/order/save",
              delete: "/order/delete",
            }
          },
          tips: {title: "Order", content: "Order"},

          form: {
            modal: {
              title: "Order"
            },
            columns: [
              {label: "id", type: "text", name: "id", required: true},
              {label: "orderNo", type: "text", name: "orderNo", required: true},
              {label: "goodsName", type: "text", name: "goodsName", required: true},
              {label: "customerOpenId", type: "text", name: "customerOpenId", required: true},
              {label: "orderTime", type: "text", name: "orderTime", required: true},
              {label: "payTime", type: "text", name: "payTime", required: true},
              {label: "activityFullPathIds", type: "text", name: "activityFullPathIds", required: true},
              {label: "activityFullPathName", type: "text", name: "activityFullPathName", required: true},
              {label: "activityContent", type: "text", name: "activityContent", required: true},
              {label: "orderStatus", type: "text", name: "orderStatus", required: true},
              {label: "refundTime", type: "text", name: "refundTime", required: true},
              {label: "refundStatus", type: "text", name: "refundStatus", required: true},
              {label: "refundReason", type: "text", name: "refundReason", required: true},
              {label: "refundAuditResult", type: "text", name: "refundAuditResult", required: true},
              {label: "transactionNo", type: "text", name: "transactionNo", required: true},

            ]
          },
          table: {
            operation: {
              primaryKey: "id",
            },
            columns: [
              {title: 'id', key: 'id'},
              {title: 'orderNo', key: 'orderNo'},
              {title: 'goodsName', key: 'goodsName'},
              {title: 'customerOpenId', key: 'customerOpenId'},
              {title: 'orderTime', key: 'orderTime'},
              {title: 'payTime', key: 'payTime'},
              {title: 'activityFullPathIds', key: 'activityFullPathIds'},
              {title: 'activityFullPathName', key: 'activityFullPathName'},
              {title: 'activityContent', key: 'activityContent'},
              {title: 'orderStatus', key: 'orderStatus'},
              {title: 'refundTime', key: 'refundTime'},
              {title: 'refundStatus', key: 'refundStatus'},
              {title: 'refundReason', key: 'refundReason'},
              {title: 'refundAuditResult', key: 'refundAuditResult'},
              {title: 'transactionNo', key: 'transactionNo'},
            ]
          }
        }
      }
    },
    methods: {}
  }
</script>
